Skip to content

examples: add local Ollama integration #2463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ProjectPAIE
Copy link

Adds an examples/ollama-local folder demonstrating how to wire Pydantic AI
to a local Ollama server. Includes:

  • config.yaml.example
  • system_prompt.txt
  • semantic.py helper
  • README.md quickstart guide

Copy link
Contributor

hyperlint-ai bot commented Aug 7, 2025

PR Change Summary

Added an example integration for using Pydantic AI with a local Ollama server, including setup instructions and configuration details.

  • Introduced an examples/ollama-local folder for local Ollama integration
  • Added a comprehensive README.md with quickstart instructions and usage examples
  • Included configuration templates and troubleshooting tips for users

Added Files

  • examples/ollama-local/README.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@DouweM
Copy link
Collaborator

DouweM commented Aug 12, 2025

@ProjectPAIE I'm not sure what this adds over https://ai.pydantic.dev/models/openai/#ollama, which is more flexible and easier to understand in the wider Pydantic AI context than an Ollama specific class and config.yml with fewer features than the existing model and provider classes.

As it stands, I think this would be more confusing and limiting than useful, so I'll close this PR.

@DouweM DouweM closed this Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants